﻿using Equation.Enterprise.Framework.Domain.Model;
using Equation.Enterprise.Tests.Framework.Domain.Model;

namespace Equation.Enterprise.Framework.Tests.Domain.Data.Mapping
{
    public class UserMapping : EntityMapping<User>
    {
        public UserMapping() : base("User")
        {
            Property(x => x.Id).HasColumnName("UserId");
            HasRequired(x => x.Address).WithRequiredPrincipal();
        }
    }
}
